package zhongbo.java.air.dictionary.service;

import org.springframework.data.domain.Page;
import zhongbo.java.air.common.vo.PageVo;
import zhongbo.java.air.dictionary.model.AirAircraft;

/**
 * 飞机基础信息表(AirAircraft)表服务接口
 *
 * @author makejava
 * @since 2025-03-31 13:55:18
 */
public interface AirAircraftService<A> {

    /**
     * 通过ID查询单条数据
     *
     * @param entityId 主键
     * @return 实例对象
     */
//    AirAlertZone queryById(String id) throws Exception;
    AirAircraft findOne(String entityId) throws Exception;


    PageVo<AirAircraft> findPage(int page, int pageSize, String keyword, String fields, String oderByField, boolean orderByAsc);

    /**
     * 新增数据
     *
     * @param entity 实例对象
     * @return 实例对象
     */
//    AirAlertZone insert(AirAlertZone airAlertZone) throws Exception;
    AirAircraft add(AirAircraft entity) throws Exception;

    /**
     * 修改数据
     *
     * @param edit 实例对象
     * @return 实例对象
     */
//    AirAlertZone update(AirAlertZone airAlertZone) throws Exception;
    AirAircraft edit(AirAircraft edit) throws Exception;

    /**
     * 通过主键删除数据
     *
     * @param entityId 主键
     * @return 是否成功
     */
//    boolean deleteById(String id) throws Exception;
    boolean delete(String entityId) throws Exception;

}
